package com.zhijian.medical.controller;

import com.zhijian.medical.annotation.Response;
import com.zhijian.medical.entity.vo.request.MeetingHstRoomsListSearchVo;
import com.zhijian.medical.entity.vo.response.MeetingHstRoomsListVo;
import com.zhijian.medical.service.MeetingService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * 会议相关
 *
 * @author HCG
 * @version 1.0
 * @date 2023-09-17
 */
@Slf4j
@Controller
@Api(tags = "会议相关")
public class MeetingController {

    @Autowired
    private MeetingService meetingService;

    /**
     * 多条件查询会议室列表
     *
     * @param meetingHstRoomsListSearchVo
     * @return
     */
    @Response
    @PostMapping("/meeting/list")
    @ApiOperation("多条件查询会议室列表")
    public List<MeetingHstRoomsListVo> selectMeetingHstRoomsListVo(@RequestBody MeetingHstRoomsListSearchVo meetingHstRoomsListSearchVo) {
        return meetingService.selectMeetingHstRoomsListVo(meetingHstRoomsListSearchVo);
    }
}
